package com.yiduo.outpost.core.web.interceptor;//package com.yiduo.outpost.autoconfigure.web.interceptor;
//
//import brave.Tracer;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.autoconfigure.AutoConfigureAfter;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
//import org.springframework.cloud.sleuth.autoconfig.TraceAutoConfiguration;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.Ordered;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
////
/////**
//// * @Author yanwen
//// * @create 2021/12/30 2:02 PM
//// */
////@Configuration
////@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET)
////@AutoConfigureAfter(TraceAutoConfiguration.class)
////@ConditionalOnClass(Tracer.class)
////public class InterceporAutoConfiguration implements WebMvcConfigurer {
////    @Autowired
////    public Tracer tracer;
////    @Bean
////    @ConditionalOnMissingBean
////    public TraceInterceptor traceInterceptor() {
////        return new TraceInterceptor(tracer);
////    }
////
////    @Override
////    public void addInterceptors(InterceptorRegistry registry) {
////        registry.addInterceptor(traceInterceptor()).addPathPatterns("/**").order(Ordered.HIGHEST_PRECEDENCE);
////    }
////}
